import request from "@/api/request"

// 意见提交

function submitAction(data){
    return request({
        url:"/feedback/submitAction",
        method:"post",
        data
    })
}

function saveAction(data){
    return request({
        url:"/address/saveAction",
        method:"post",
        data
    })
}
// 地址列表
function getListAction(data){
    return request({
        url:"/address/getListAction",
        method:"get",
        data
    })
}
// 地址详情
function addressinfo(data){
    return request({
        url:"/address/detailAction",
        method:"get",
        data
    })
}

// 删除地址
function deleteAction(data){
    return request({
        url:"/address/deleteAction",
        method:"get",
        data
    })
}
// 提交订单
function odersub(data){
    return request({
        url:"/order/submitAction",
        method:"post",
        data
    })
}
// 提交后默认地址
function oderlist(data){
    return request({
        url:"/order/detailAction",
        method:"get",
        data
    })
}
export{
    saveAction ,getListAction, submitAction, addressinfo , deleteAction,odersub ,oderlist
}